class DynamicPretender {
	Closure whatToDo = {"access $it"}
	def propertyMissing(String name) {
		whatToDo(name)
	}
}

def dp = new DynamicPretender()

assert dp.hello == 'access hello'

// 改变闭包逻辑, 那么就是改变了钩子逻辑
dp.whatToDo = { it.size() }
assert dp.hello == 5
